package com.shaozi.nc.execpool;

import com.shaozi.lib.execpool.TaskRunnable;
import com.shaozi.lib.execpool.base.ExecutorDataBean;
import com.shaozi.nc.io.mq.MakeSecretaryReadProducer;
import com.shaozi.nc.manage.secretary.OperationManage;
import com.shaozi.utils.common.BeanUtils;

public class MakeOperationReadMQRunnable extends BaseMakeSecretaryReadMQRunnable implements TaskRunnable {

	public MakeOperationReadMQRunnable() {

	}

	@Override
	public void run(ExecutorDataBean bean) {
		MakeSecretaryReadProducer makeSecretaryReadProducer = (MakeSecretaryReadProducer) BeanUtils
				.getBean("makeSecretaryReadProducer");

		OperationManage operationManage = (OperationManage) BeanUtils.getBean("operationManage");
		run(bean, makeSecretaryReadProducer, operationManage);
	}

}